
        import java.util.ArrayList;
        import java.util.Properties;

public class test {
    public static void main(String[] args) {
        String url = "http://www.lovo.com/index?name=aaaaaa&age=20&gender=男";
        Properties properties = new Properties();
        String s = url.substring(url.indexOf("?") + 1);//从？下标的下一个下标开始截取
        String[] st = s.split("&");
        for (int i = 0; i < st.length; i++) {
            String[] str = st[i].split("=");

            properties.setProperty(str[0], str[1]);
        }
        Properties properties1 = propertiesUtil.readProperties("2.properties");
        System.out.println(properties1);
    }
}
